﻿using GameFramework;
using System;
using UnityEngine;

namespace TowerDefence_Zombie
{
    [Serializable]
    public class DamageWordDataEnemy :EntityData
    {

        public Vector3 StartPosition
        {
            get;
            private set;
        }


        public float Damage
        {
            get;
            private set;
        }

        public bool isPoison
        {
            get;
            private set;
        }

        public static DamageWordDataEnemy Create(Vector3 startPosition, float damage, bool isPoison)
        {
            DamageWordDataEnemy entityData = ReferencePool.Acquire<DamageWordDataEnemy>();
            entityData.StartPosition = startPosition;
            entityData.Damage = damage;
            entityData.isPoison = isPoison;
            return entityData;
        }


        public override void Clear()
        {
            base.Clear();
            StartPosition = Vector3.zero;
            Damage = 0;
            isPoison = false;
        }
    }
}
